package com.zys.el.time.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zys.el.time.entity.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CommentMapper extends BaseMapper<Comment> {
    List<Comment> getRootCommentPageByThinkingId(@Param("thinkingId") Long thinkingId,
                                                 @Param("page") Long page,
                                                 @Param("size") int size);

    List<Comment> getRepliedCommentPageByThinkingId(@Param("rootCommentId") Long rootCommentId,
                                                    @Param("page") Long page,
                                                    @Param("size") int size);

    Long getCountByThinkingId(@Param("thinkingId") Long thinkingId);
}




